package com.nhxcz.bigdataweb.mapper;

import com.nhxcz.bigdataweb.entity.History;
import com.nhxcz.bigdataweb.entity.YiChangPoint;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface YCJJMapper {

    @Select("select * from abnormal")
    ArrayList<YiChangPoint> getAllPoints();

    @Select("select time,count from historycount where longitude=#{longitude} and latitude=#{latitude} ")
    ArrayList<History> getHistory(double longitude, double latitude);

}
